home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS20.ADF / BobEd / bobed.h < prev    next >
C/C++ Source or Header  |  1989-01-27  |  2KB  |  57 lines

  1. #include <exec/types.h>
  2. #include <exec/io.h>
  3. #include <graphics/gfx.h>
  4. #include <graphics/gfxbase.h>
  5. #include <graphics/copper.h>
  6. #include <graphics/text.h>
  7. #include <graphics/rastport.h>
  8. #include <graphics/view.h>
  9. #include <exec/exec.h>
  10. #include <graphics/gels.h>
  11. #include <intuition/intuition.h>
  12. #include <intuition/intuitionbase.h>
  13.  
  14. #define  DEPTH 4     /* bit planes for screen */
  15. #define  WIDE  320   /* width of screen (ie not hires) */
  16. #define  MODE  NULL  /* not HIRES */
  17. #define  HIGH  200   /* non interlaced */
  18. #define  HWIDE (WIDE/2) /* half of window width */
  19.  
  20. #define  HBOBS 3     /* how many images to put accross */
  21. #define  VBOBS 3     /* how many vert */
  22. #define  OBS   (HBOBS*VBOBS)  /* total number of images */
  23.  
  24. #define  BWIDE 3  /* width of each image in words */
  25. #define  BHIGH 45 /* height of each image */
  26. #define  BDEEP (DEPTH)  /* same depth as screen */
  27. #define  PLANE (BWIDE*BHIGH)  /* size of one plane */
  28. #define  BSIZE (BWIDE*BHIGH*BDEEP)  /* total size of image */
  29.  
  30. #define  LOFFSET  7  /* left offset for draw box */
  31. #define  TOFFSET  23 /* top offset for draw box */
  32. #define  ROFFSET  7  /* right offset from HWIDE for draw box */
  33. #define  BOFFSET  40 /* bottom offse for draw box */
  34.  
  35. #define  GHIGH    20 /* gadget height (color select) */
  36. #define  COLORS   16 /* 2^DEEP */
  37.  
  38. #define  HBLOCK   ((HWIDE-LOFFSET-ROFFSET-2)/BWIDE/16) /* width of fatbit */
  39. #define  VBLOCK   ((HIGH-BOFFSET-TOFFSET-2)/BHIGH)     /* height of fatbit */
  40.  
  41. #define  VIEWBASE 70 /* gadget ID offset for view gadgets */
  42.                      /* I use the ID field of the gadget structure in
  43.                         The case statement in "events.c" to decode which
  44.                         gadget was pressed.  The "view" gadgets are for
  45.                         the image boxes to the right of the draw box. */
  46.  
  47. #define  MENUS 3  /* file menu, edit menu */
  48. #define  FILEI 4  /* info, load, save, quit */
  49. #define  EDITI 3  /* clear, flip, rotate  */
  50. #define  COPYI 2  /* copy, paste */
  51.  
  52. #define  REQBASE  90 /* gadget ID offset for requester gadgets.
  53.                         same as above but this is for the requester
  54.                         gadgets. */
  55.  
  56.  
  57.